package com.springboot.dubbo.facade.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.springboot.dubbo.facade.ServiceInfoFacade;
import com.springboot.dubbo.pojo.UserInfoPojo;
import com.springboot.dubbo.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * neu
 * 2019/10/17 17:14
 *
 * @Version : 1.0
 * @Description :
 */

@Service   //属于Dubbo的@Service注解，非Spring  作用：暴露服务
@Component
public class ServiceInfoFacadeImpl implements ServiceInfoFacade {

    @Autowired
    private UserInfoService userInfoService;

    @Override
    public List<UserInfoPojo> findUserInfoList(UserInfoPojo dojo) {
        List<UserInfoPojo> list = userInfoService.findUserInfoList(dojo);
        return list;
    }
}
